//
//  RZRecordButton.h
//  RZIM
//
//  Created by reyzhang on 2021/8/26.
//  自定义录制按钮

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol RZRecordButtonDelegate <NSObject>

/**
 结束倒计时代理方法
 */
- (void)rz_delegateEndCountdown;
@end

@interface RZRecordButton : UIButton
@property(nonatomic, weak)id<RZRecordButtonDelegate> rz_delegate;

/**
 开始录制
 */
- (void)rz_startRecording:(void (^) (BOOL finish, BOOL isEndRecord))completion;

/**
 结束录制
 */
- (void)rz_endRecord;
@end

NS_ASSUME_NONNULL_END
